import { post, get } from './request'
  /**
   * 获取当天背景图
   */
export async function getBackgroundToday() {
    const res =  await get('/getBackgroundToday')
    return res
}
    /**
   * 注册
   */
export async function userRegister(prams = {}) {
    const res =  await post('/userRegister', prams)
    return res
}
    /**
     * 获取能下载的数量
     */
export async function getBackgroundNumber(prams = {}) {
    const res =  await post('/getBackgroundNumber', prams)
    return res
}

export async function submitDownIp(prams = {}) {
    const res =  await post('/submitDownIp', prams)
    return res
}

export async function apiUpdateBackgroundDownNumber(prams = {}) {
    const res =  await post('/updateBackgroundDownNumber', prams)
    return res
}

export async function apiReceiveToDayBackgroundNumber(prams = {}) {
    const res =  await post('/receiveToDayBackgroundNumber', prams)
    return res
}

export async function apiAutoUpdateBgDownNumber(prams = {}) {
    const res =  await post('/autoUpdateBgDownNumber', prams)
    return res
}
export async function apiJscode2session(prams = {}) {
    const res =  await post('/jscode2session', prams)
    return res
}


